package com.cloud.school.app.service;

import com.cloud.school.app.model.GroupMemberModel;

import java.util.List;

/**
 * @ClassName GroupMemberService
 * @Description TODO
 * @Author 36297
 * @Date 2018/12/13 20:15
 * @Version 1.0
 */
public interface GroupMemberService {
    List<GroupMemberModel> queryByGroupId(Long groupId);

    boolean save(List<GroupMemberModel> groupMemberModels);

    boolean save(GroupMemberModel groupMemberModel);

    boolean deleteByGroupIdAndUserIds(Long groupId, List<Long> userIds);

    boolean inviteUser(Long groupId, List<Long> userIds,Long inviteUid);

    boolean passInvitation(Long groupMemberId);

    List<GroupMemberModel> queryInvitation(Long userId);

    List<GroupMemberModel> queryDetailByGroupId(Long groupId);
}
